import { Http } from '@/utils';
import ControlService from '@/service/control-service';
import DefaultMode from './default-appmenu-mode';


/**
 * Default 部件服务对象
 *
 * @export
 * @class DefaultService
 */
export default class DefaultService extends ControlService {

    /**
     * Creates an instance of DefaultService.
     * 
     * @param {*} [opts={}]
     * @memberof DefaultService
     */
    constructor(opts: any = {}) {
        super(opts);
        this.mode = new DefaultMode();
    }

    /**
     * 获取数据
     *
     * @returns {Promise<any>}
     * @memberof Default
     */
    public get(params: any = {}): Promise<any> {
        return Http.getInstance().get('v7/defaultappmenu', params);
    }

}